/*
 * @Author: C.
 * @Date: 2023-04-12 13:59:09
 */
import { createEnumObject, IEnums } from '../../jv_package/utils/data/createEnumObject';
// 枚举值配置，用于属性扩展
const signEnum: IEnums[] = [
  {
    value: 'JointlySign',
    label: '会签',
    des: '（须所有审批人同意）',
    color: 'rgb(255, 148, 62)',
  },
  {
    value: 'OptionallySign',
    label: '或签',
    des: '（一名审批人同意或拒绝即可）',
    color: 'rgb(50, 150, 250)',
  },
];
// wait process finish error
export const auditEnum: IEnums[] = [
  //  Approving 审核中
  {
    label: '待处理',
    value: 'WaitToProcess',
    color: '#6B7280',
    operation: { del: false, edit: false },
  },
  //  Approving 审核中
  { label: '审核中', value: 'Approving', color: '#FBBF24', operation: { del: false, edit: false } },
  //  Approved 已审核
  { label: '已审核', value: 'Approved', color: '#10B981', operation: { del: false, edit: false } },
  //  Rejected 拒绝
  { label: '拒绝', value: 'Rejected', color: '#EF4444', operation: { del: false, edit: false } },
  //  Completed 已完成
  { label: '已撤审', value: 'Revoked', color: '#8B5CF6', operation: { del: false, edit: false } },
  //  Discarded 废弃
  { label: '已取消', value: 'Cancelled', color: '#D1D5DB', operation: { del: false, edit: false } },
  { label: '已跳过', value: 'Skipped', color: '#06b6d4', operation: { del: false, edit: false } },
];

// /// 待处理
// WaitToProcess,
// /// 审核中
// Approving,
// /// 已同意
// Approved,
// /// 已拒绝
// Rejected,
// /// 已撤审
// Revoked,
// /// 已取消 撤审后，后续的节点状态为已取消
// Cancelled,
// Skipped

export const auditSignEnum = createEnumObject(signEnum);
// 枚举值对象，用于数值转换
export default createEnumObject(auditEnum);
